<?php
$this->breadcrumbs = array(
    'Articles' => array('index'),
);

if (!is_null($model)) :
    if ($model->id)
        $this->breadcrumbs = CMap::mergeArray($this->breadcrumbs, array($model->id => array('view', 'id' => $model->id), 'Update'));
    else
        $this->breadcrumbs = CMap::mergeArray($this->breadcrumbs, array('Create'));

    $this->menu = array(
    );
?>

    <h1><?php echo $model->id ? 'Update' : 'Create';?> Article <?php echo $model->id; ?></h1>

    <?php echo $this->renderPartial('_form', array('model' => $model)); ?>
<?php
else :
?>
    <p class="errorMessage">Sorry! This article is not found.</p>
<?php
endif; ?> 